//
//  UILabel+YJCSetting.h
//  MyDemos
//
//  Created by IOS3 on 2019/3/8.
//  Copyright © 2019 iMac. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UILabel (YJCSetting)

/// set text
- (UILabel *(^)(NSString *text))setText;

/// set textColor
- (UILabel *(^)(UIColor *color))setTextColor;

/// set backgroundColor
- (UILabel *(^)(UIColor *color))setBGColor;

/// set system font size
- (UILabel *(^)(CGFloat size))setSysFont;

/// set font size & fontName
- (UILabel *(^)(CGFloat size, NSString *name))setFontName;

/// set attribute text
- (UILabel *(^)(NSAttributedString *attr))setAttrText;

/// set frame
- (UILabel *(^)(CGRect frame))setFrame;

/// set numberOfline
- (UILabel *(^)(NSInteger lineNum))setLineNum;

/// set textAlignment
- (UILabel *(^)(NSTextAlignment alignment))setAlignment;

/// set tag
- (UILabel *(^)(NSInteger tag))setTag;

@end

NS_ASSUME_NONNULL_END
